# $Id: PKGBUILD 65803 2012-02-22 12:43:59Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-mime-attachment-stripper
pkgver=1.316
pkgrel=3
pkgdesc="strip the attachments from an email "
arch=('any')
url="http://search.cpan.org/dist/Email-MIME-Attachment-Stripper"
license=('GPL' 'PerlArtistic')
depends=('perl-email-mime-modifier>=1.442' 'perl-email-mime-contenttype>=1.0' 'perl-email-mime>=1.861')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/R/RJ/RJBS/Email-MIME-Attachment-Stripper-$pkgver.tar.gz)
md5sums=('b86eb6a18144b24279517349da96b582')

build() {
  cd  $srcdir/Email-MIME-Attachment-Stripper-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
